package top.zywork.enums;

/**
 * @author Animo
 * @Date 2020/12/1
 * @Blog http://www.ljyanimo.com
 */
public enum UploadTypeEnums {
    IMAGE(".jpg,.jpeg,.png,.gif,.bmp", 10485760L),
    VIDEO(".mp4,.webm,.ogg", 209715200L),
    IMAGE_VIDEO(".jpg,.jpeg,.png,.gif,.bmp,.mp4,.webm,.ogg", 209715200L),
    OFFICE(".doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.txt", 10485760L),
    ZIP(".zip,.rar", 10485760L),
    OFFICE_ZIP(".doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.txt,.zip,.rar", 10485760L),
    IMAGEANDOFFICE(".jpg,.jpeg,.png,.gif,.bmp,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.txt",10485760L);

    private String allowedExts;
    private Long maxSize;

    private UploadTypeEnums(String allowedExts, Long maxSize) {
        this.allowedExts = allowedExts;
        this.maxSize = maxSize;
    }

    public String getAllowedExts() {
        return this.allowedExts;
    }

    public void setAllowedExts(String allowedExts) {
        this.allowedExts = allowedExts;
    }

    public Long getMaxSize() {
        return this.maxSize;
    }

    public void setMaxSize(Long maxSize) {
        this.maxSize = maxSize;
    }
}
